# swim.py
from abc import ABC, abstractmethod

# 游泳行为接口
class SwimBehavior(ABC):
    @abstractmethod
    def swim(self):
        pass

# 具体游泳行为：鱼翔浅底
class AbleSwim(SwimBehavior):
    def swim(self):
        print("鱼翔浅底，畅游水中！")

# 具体游泳行为：扑腾几下就淹死了
class UnableSwim(SwimBehavior):
    def swim(self):
        print("扑腾几下，就淹死了...")

